home *** CD-ROM | disk | FTP | other *** search
- // CPU Speed.cpp : Defines the entry point for the application.
- //
-
- #include "stdafx.h"
-
-
- int MyWinMain(void)
- {
- CTimer timer;
- TCHAR mess[30];
- timer.Start();
- Sleep(1000);
- unsigned cpuspeed10 = (unsigned)(timer.Stop()/100000);
- wsprintf(mess, (char *)("CPU speed %d.%d mhz\n"), cpuspeed10 / 10, cpuspeed10 % 10);
- MessageBox(NULL, mess, "CPU Speed", MB_OK);
- return 0;
- }
-
-
-
-